import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

import 'app.dart';
import 'builder/BaseBean.dart';

void main() {
  _runBefore();
  runApp(App());
  _runAfter();
}

///项目运行前
void _runBefore() {
  BaseBean.init();
}

///项目运行后
void _runAfter() {
  SystemUiOverlayStyle systemUiOverlayStyle = const SystemUiOverlayStyle(
    statusBarColor: Colors.transparent, //状态栏颜色
    systemNavigationBarColor: Colors.white, //底部导航栏颜色
  );
  SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
}
